<h2><%= @title %></h2>
<%= error_messages_for 'user' %>
<% form_for :user do |form| -%>
  <fieldset>
  	<legend>Email</legend>
		<%= hidden_field_tag "attribute", "email", :id => nil %>
		<%= render :partial => "email_field_row", :locals => { :form => form } %>
		<div class="form_row">
			<%= submit_tag "Update", :class => "submit" %>
		</div>
  </fieldset>
<% end -%>
<% form_for :user do |f| -%>
  <fieldset>
  	<legend>Password</legend>
		<%= hidden_field_tag "attribute", "password", :id => nil %>
		<%= render :partial => "password_field_row", 
							 :locals => { :form => f, :field => "current_password" }%>
		<%= render :partial => "password_field_row", 
							 :locals => { :form => f,
								 						:field => "password",
								 						:field_title => "New password" }%>
		<%= render :partial => "password_field_row", 
							 :locals => { :form => f,
								 						:field => "password_confirmation",
								 						:field_title => "Confirm" }%>
		<%= submit_tag "Update", :class => "submit" %>
  </fieldset>
<% end -%>